<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>成功案例详情</title>
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #4e6ef2;
            --secondary-color: #3c5eff;
            --accent-color: #ff5c5c;
            --light-color: #f0f4ff;
            --text-color: #333;
            --text-secondary: #666;
            --text-light: #999;
            --bg-color: #fff;
            --border-color: #eee;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            color: var(--text-color);
            line-height: 1.5;
            background-color: #f5f7fa;
        }
        
        .app-container {
            max-width: 800px;
            margin: 0 auto;
            background-color: var(--bg-color);
            min-height: 100vh;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
            position: relative;
        }
        
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 16px;
            background-color: var(--primary-color);
            color: white;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .back-btn {
            background: none;
            border: none;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            transition: background-color 0.3s;
        }
        
        .back-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .page-title {
            font-size: 18px;
            font-weight: 600;
            flex: 1;
            text-align: center;
        }
        
        .main-content {
            padding: 20px 16px;
        }
        
        .case-header {
            margin-bottom: 25px;
        }
        
        .case-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-color);
            margin-bottom: 12px;
            line-height: 1.3;
        }
        
        .case-meta {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            font-size: 14px;
            color: var(--text-secondary);
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            margin-right: 15px;
        }
        
        .meta-item i {
            margin-right: 5px;
            font-size: 16px;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            background-color: #f9faff;
            padding: 15px;
            border-radius: 12px;
        }
        
        .user-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 15px;
            border: 2px solid white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .user-details {
            flex: 1;
        }
        
        .user-details h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--text-color);
        }
        
        .user-details p {
            font-size: 14px;
            color: var(--text-secondary);
        }
        
        .case-results {
            display: flex;
            margin-bottom: 20px;
            background-color: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .result-item {
            flex: 1;
            padding: 15px 10px;
            text-align: center;
            border-right: 1px solid #f0f0f0;
        }
        
        .result-item:last-child {
            border-right: none;
        }
        
        .result-item h4 {
            font-size: 13px;
            margin-bottom: 8px;
            color: var(--text-secondary);
            font-weight: 500;
        }
        
        .result-item p {
            font-size: 18px;
            color: var(--primary-color);
            font-weight: 600;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: 600;
            margin: 25px 0 15px;
            color: var(--text-color);
            position: relative;
            padding-left: 12px;
        }
        
        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 4px;
            height: 16px;
            width: 4px;
            background-color: var(--primary-color);
            border-radius: 2px;
        }
        
        .case-content {
            font-size: 15px;
            line-height: 1.7;
            color: var(--text-color);
            margin-bottom: 25px;
        }
        
        .case-content p {
            margin-bottom: 15px;
        }
        
        .process-timeline {
            margin: 20px 0 30px;
        }
        
        .timeline-item {
            position: relative;
            padding-left: 30px;
            padding-bottom: 25px;
            border-left: 2px solid #eaeaea;
            margin-left: 15px;
        }
        
        .timeline-item:last-child {
            border-left: 2px solid transparent;
            padding-bottom: 5px;
        }
        
        .timeline-dot {
            position: absolute;
            left: -10px;
            top: 0;
            width: 18px;
            height: 18px;
            background-color: var(--primary-color);
            border-radius: 50%;
            border: 3px solid white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .timeline-content {
            background-color: #f9f9fb;
            padding: 15px;
            border-radius: 8px;
        }
        
        .timeline-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-color);
        }
        
        .timeline-desc {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
        }
        
        .advice-list {
            margin-bottom: 30px;
        }
        
        .advice-item {
            background-color: #f9f9fb;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 15px;
        }
        
        .advice-title {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-color);
            display: flex;
            align-items: center;
        }
        
        .advice-title i {
            color: var(--primary-color);
            margin-right: 8px;
            font-size: 18px;
        }
        
        .advice-desc {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
        }
        
        .agent-info {
            background-color: #f9faff;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 25px;
        }
        
        .agent-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .agent-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 15px;
            border: 2px solid white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .agent-details {
            flex: 1;
        }
        
        .agent-name {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .agent-title {
            font-size: 14px;
            color: var(--text-secondary);
        }
        
        .agent-desc {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 15px;
        }
        
        .action-buttons {
            display: flex;
            gap: 10px;
        }
        
        .action-btn {
            flex: 1;
            padding: 10px 0;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        
        .view-profile-btn {
            background-color: #f0f5ff;
            color: var(--primary-color);
        }
        
        .view-profile-btn:hover {
            background-color: #e0ebff;
        }
        
        .consult-btn {
            background-color: var(--primary-color);
            color: white;
        }
        
        .consult-btn:hover {
            background-color: var(--secondary-color);
        }
        
        .related-cases {
            margin-bottom: 30px;
        }
        
        .case-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }
        
        .case-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: all 0.3s;
        }
        
        .case-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .case-card-img {
            height: 100px;
            width: 100%;
            overflow: hidden;
        }
        
        .case-card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .case-card:hover .case-card-img img {
            transform: scale(1.05);
        }
        
        .case-card-content {
            padding: 12px;
        }
        
        .case-card-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--text-color);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.4;
            height: 40px;
        }
        
        .case-card-result {
            font-size: 12px;
            color: var(--primary-color);
            font-weight: 500;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease-in-out;
        }
        
        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 0;
            text-align: center;
        }
        
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #f0f0f0;
            border-top: 3px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    </style>
</head>
<body>
    <div class="app-container">
        <!-- 头部导航 -->
        <header class="header">
            <a href="javascript:history.back()" class="back-btn"><i class="bi bi-arrow-left"></i></a>
            <h1 class="page-title">成功案例详情</h1>
            <div style="width: 40px;"></div>
        </header>

        <!-- 主内容区 -->
        <main class="main-content" id="case-content">
            <!-- 内容将通过JavaScript动态加载 -->
            <div class="loading-container">
                <div class="loading-spinner"></div>
                <p>正在加载案例详情...</p>
            </div>
        </main>
    </div>

    <script src="../js/case-detail.js"></script>
</body>
</html> 